-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
standards-compliant import.meta.resolve #10985
Conversation
Deploying agoric-sdk with
|
Latest commit: |
c5f7c97
|
Status: | ✅ Deploy successful! |
Preview URL: | https://2ceb1ca2.agoric-sdk.pages.dev |
Branch Preview URL: | https://ta-import-meta-resolve.agoric-sdk.pages.dev |
283ab20
to
989eec8
Compare
9660aa6
to
ce9ff09
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like progress. Thanks.
const importSpec = spec => | ||
importMetaResolve(spec, import.meta.url).then(u => new URL(u).pathname); | ||
const importSpec = async spec => | ||
new URL(importMetaResolve(spec, import.meta.url)).pathname; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary to fix everything in one pass, but notably, this is an opportunity to replace .pathname
with fileURLToPath
as that’s more robust across platforms or checkout directories with spaces (.pathname
will have %20
instead of the obligate space).
ce9ff09
to
42b3213
Compare
42b3213
to
c5f7c97
Compare
closes: #10986
Description
import.meta.resolve
is synchronous nowSecurity Considerations
Scaling Considerations
Documentation Considerations
Testing Considerations
Kink to sort out with dapp integration test:
Upgrade Considerations